Google Drive File Picker
Tier: Pro, Enterprise
Stirling-PDF allows users to select Files for processing through tools via google drive.
Google Api Access
To enable this features for your users, you must first set up your Google environment. This includes creating a Google Cloud project. Follow the Setting up your environment section of this guide to do so.
Stirling PDF configuration
premium:
...
enabled: true # Enable license key checks for pro/enterprise features
proFeatures:
...
googleDrive:
enabled: true
clientId: <YOUR_CLIENT_ID>
apiKey: <YOUR_API_KEY>
appId: <YOUR_APP_ID>
premium.enabled
: Set totrue
to enable premium features.googleDrive.enabled
: Set totrue
to enable google drive file picker features.googleDrive.clientId
: Your Google web app's client ID. Go to Credentials and Click Create credentials > OAuth client ID.googleDrive.apiKey
: API key for google api access. Go to Credentials and Click Create credentials > API key.googleDrive.appId
: Google drive app ID also known as your Project Number Found in your IAM&Admin Project Settings
⚠️ Note
You must set the Authroized Javascript origins for your OAuth client ID to include your Stirling PDF host domain or IP address.
Configurations Examples
Below are examples of the full configuration for enabling the google Drive Picker:
- Settings File
- Local Environment
- Docker Run
- Docker Compose
premium:
enabled: true # Enable license key checks for pro/enterprise features
proFeatures:
googleDrive:
enabled: true
clientId: <YOUR_CLIENT_ID>
apiKey: <YOUR_API_KEY>
appId: <YOUR_APP_ID>
export PREMIUM_ENABLED=true
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_ENABLED=true
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_CLIENT_ID="<YOUR_CLIENT_ID>"
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_API_KEY="<YOUR_API_KEY>"
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_APP_ID="<YOUR_APP_ID>"
-e PREMIUM_ENABLED=true \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_ENABLED=true \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_CLIENT_ID="<YOUR_CLIENT_ID>" \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_API_KEY="<YOUR_API_KEY>" \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_APP_ID="<YOUR_APP_ID>" \
environment:
PREMIUM_ENABLED: true
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_ENABLED: true
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_CLIENT_ID: <YOUR_CLIENT_ID>
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_API_KEY: <YOUR_API_KEY>
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_APP_ID: <YOUR_APP_ID>